<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="Xenon Boostrap Admin Panel" />
    <meta name="author" content="" />

    <title>飞科文化</title>

*{<link rel="stylesheet" href="http://fonts.useso.com/css?family=Arimo:400,700,400italic">}*
    <link rel="stylesheet" href="/public/css/fonts/linecons/css/linecons.css">
    <link rel="stylesheet" href="/public/css/fonts/fontawesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/public/css/bootstrap.css">
    <link rel="stylesheet" href="/public/css/xenon-core.css">
    <link rel="stylesheet" href="/public/css/xenon-forms.css">
    <link rel="stylesheet" href="/public/css/xenon-components.css">
    <link rel="stylesheet" href="/public/css/xenon-skins.css">
    <link rel="stylesheet" href="/public/css/custom.css">

    <script src="/public/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/public/jquery/jquery.qrcode.min.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" src="/public/pingxx/pingpp-pc.js"></script>
    <script src="/public/js/toastr/toastr.min.js"></script>


</head>
<body style="background: #ffffff;padding: 20px 20px;">

<div style="text-align: center;font-size: 30px;font-weight: bold" id="wechat-img" >
    飞氧星球欢迎您
</div>
<input type="hidden" name="orderId" id="orderId"  >
<div id="orderMessage" style="text-align: center">

</div>
<!-- Bottom Scripts -->
<script src="/public/js/bootstrap.min.js"></script>
<script src="/public/js/TweenMax.min.js"></script>
<script src="/public/js/resizeable.js"></script>
<script src="/public/js/joinable.js"></script>
<script src="/public/js/xenon-api.js"></script>
<script src="/public/js/xenon-toggles.js"></script>


<!-- Imported scripts on this page -->
<script src="/public/js/xenon-widgets.js"></script>
<script src="/public/js/devexpress-web-14.1/js/globalize.min.js"></script>
<script src="/public/js/devexpress-web-14.1/js/dx.chartjs.js"></script>


<!-- JavaScripts initializations and stuff -->
<script src="/public/js/xenon-custom.js"></script>

<script type="text/javascript" src="/public/lib/layer/js/layer.js"></script>

<script type="text/javascript">
    function showqrcode() {
        var id = $('#orderId').val();
        $.getJSON("/admin/order/showQRcode",
                function (data) {
                    if (data.success) {
//                        alert(id + "_" + data.id);
                        if(data.id != id) {
                            $('#wechat-img').html('');
//                            alert("两个ID 不想等");
                            $('#orderId').val(data.id);
                            $('#orderMessage').html(data.orderNumber);
                            $('#wechat-img').qrcode({width:400,height:400,correctLevel:0,text: data.qrcode}).show();
                        }

                    } else {
                        $('#wechat-img').html("飞氧星球欢迎您");
                    }
                }
        );
    }

    $(function(){
        setInterval(showqrcode,6000);
    })

</script>
</body>
</html>